export interface Menu {
  html: string
  id: number
  menu_name: string
  menu_path: string
  pid: number
  sort: number
  type: number
  unique_auth: string
}

export interface IJNotice {
  icon: string
  iconColor: string
  title: string
  url: string
  type: string
  read: number
  time: number
}

export interface IHeaderInfo {
  today: number
  yesterday: number
  today_ratio: number
  week: number
  last_week: number
  week_ratio: number
  total: string
  date: string
  title: string
  total_name: string
}

export type Cycle = 'thirtyday' | 'week' | 'month' | 'year'

export interface IOrderCycleChartData {
  yAxis: any
  legend: any
  xAxis: any
  series: any
  pre_cycle: {
    count: {
      data: number
    }
    price: {
      data: string
    }
  }
  cycle: {
    count: {
      data: number
      percent: number
      is_plus: number
    }
    price: {
      data: string
      percent: number
      is_plus: number
    }
  }
}

export interface PieDataItem {
  itemStyle: { color: string }
  color: string
  name: string
  value: number
}

export interface IUserChartData {
  bing_data: PieDataItem[]
  bing_xdata: string[]
  legend: string[]
  series: number[]
  xAxis: string[]
  yAxis: { maxnum: number }
}
